package org.lesson4_aop.service.proxy;

public class EmployeeServiceProxy implements IEmployeeService{

    private IEmployeeService employeeService;

    public EmployeeServiceProxy(IEmployeeService employeeService){
        this.employeeService = employeeService;
    }

    public  void log(){
        System.out.println("输出日志中...");
    }


    public void close(){
        System.out.println("操作结束.....");
    }

    @Override
    public void newDoc() {

        this.log();
        this.employeeService.newDoc();
        this.close();

    }
}
